Tables [dbo].[TaxAuthorityFinancialEntity]
Properties
PropertyValue
Created10:31:41 AM Tuesday, March 02, 2010
Last Modified1:20:17 PM Thursday, February 23, 2012
Columns
NameData TypeMax Length (Bytes)Allow NullsDefault
Cluster Primary Key PK_TaxAuthorityFinancialEntity: TaxAuthorityFinancialEntityKeyTaxAuthorityFinancialEntityKeyuniqueidentifier16
No
(newid())
TaxAuthorityKeyuniqueidentifier16
No
FinancialEntityKeyuniqueidentifier16
No
TaxRegistrationIDnvarchar(50)100
Yes
TaxLiabilityGLAccountKeyuniqueidentifier16
Yes
Foreign Keys FK_TaxAuthorityFinancialEntity_UserMain_UpdatedBy: [dbo].[UserMain].UpdatedByUserKeyIndexes IX_TaxAuthorityFinancialEntity_UpdatedByUserKey: UpdatedByUserKeyUpdatedByUserKeyuniqueidentifier16
No
UpdatedOndatetime8
No
Foreign Keys FK_TaxAuthorityFinancialEntity_UserMain_CreatedBy: [dbo].[UserMain].CreatedByUserKeyIndexes IX_TaxAuthorityFinancialEntity_CreatedByUserKey: CreatedByUserKeyCreatedByUserKeyuniqueidentifier16
No
CreatedOndatetime8
No
MarkedForDeleteOndatetime8
Yes
Indexes Indexes
NameColumnsUnique
Cluster Primary Key PK_TaxAuthorityFinancialEntity: TaxAuthorityFinancialEntityKeyPK_TaxAuthorityFinancialEntityTaxAuthorityFinancialEntityKey
Yes
IX_TaxAuthorityFinancialEntity_CreatedByUserKeyCreatedByUserKey
IX_TaxAuthorityFinancialEntity_UpdatedByUserKeyUpdatedByUserKey
Foreign Keys Foreign Keys
NameColumns
FK_TaxAuthorityFinancialEntity_UserMain_CreatedByCreatedByUserKey->[dbo].[UserMain].[UserKey]
FK_TaxAuthorityFinancialEntity_UserMain_UpdatedByUpdatedByUserKey->[dbo].[UserMain].[UserKey]
SQL Script
CREATE TABLE [dbo].[TaxAuthorityFinancialEntity]
(
[TaxAuthorityFinancialEntityKey] [uniqueidentifier] NOT NULL CONSTRAINT [DF_TaxAuthorityFinancialEntity_TaxAuthorityFinancialEntityKey] DEFAULT (newid()),
[TaxAuthorityKey] [uniqueidentifier] NOT NULL,
[FinancialEntityKey] [uniqueidentifier] NOT NULL,
[TaxRegistrationID] [nvarchar] (50) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[TaxLiabilityGLAccountKey] [uniqueidentifier] NULL,
[UpdatedByUserKey] [uniqueidentifier] NOT NULL,
[UpdatedOn] [datetime] NOT NULL,
[CreatedByUserKey] [uniqueidentifier] NOT NULL,
[CreatedOn] [datetime] NOT NULL,
[MarkedForDeleteOn] [datetime] NULL
) ON [PRIMARY]

GO
ALTER TABLE [dbo].[TaxAuthorityFinancialEntity] ADD CONSTRAINT [PK_TaxAuthorityFinancialEntity] PRIMARY KEY CLUSTERED ([TaxAuthorityFinancialEntityKey]) ON [PRIMARY]
GO
CREATE NONCLUSTERED INDEX [IX_TaxAuthorityFinancialEntity_CreatedByUserKey] ON [dbo].[TaxAuthorityFinancialEntity] ([CreatedByUserKey]) ON [PRIMARY]
GO
CREATE NONCLUSTERED INDEX [IX_TaxAuthorityFinancialEntity_UpdatedByUserKey] ON [dbo].[TaxAuthorityFinancialEntity] ([UpdatedByUserKey]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[TaxAuthorityFinancialEntity] ADD CONSTRAINT [FK_TaxAuthorityFinancialEntity_UserMain_CreatedBy] FOREIGN KEY ([CreatedByUserKey]) REFERENCES [dbo].[UserMain] ([UserKey])
GO
ALTER TABLE [dbo].[TaxAuthorityFinancialEntity] ADD CONSTRAINT [FK_TaxAuthorityFinancialEntity_UserMain_UpdatedBy] FOREIGN KEY ([UpdatedByUserKey]) REFERENCES [dbo].[UserMain] ([UserKey])
GO
Uses